<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="updatePassword" method="post">
    原密码：<input type="password" name="oldPassword"><br>
    新密码：<input type="password" name="newPassword" >
    <c:if test="${param.message=='OLD_EQUAL_NEW'}">
        <span style="color: red">新密码不能跟旧密码一样</span>
    </c:if>
    <c:if test="${param.message=='PASSWORD_LONG'}">
        <span style="color: red">新密码只能六位数</span>
    </c:if>

    <br>
    重复一次密码：<input type="password" name="newPassword2" >
    <c:if test="${param.message=='P1_NOT_EQUAL_P2'}">
        <span style="color: red">您2次输入的密码不一致</span>
    </c:if>

    <br>
    <input type="submit">
</form>
</body>
</html>
